package org.example;

public class demo2 {

    public static void main(String[] args) throws InterruptedException {
/*优先级*/
        //创建参数对象
        MyThread mt = new MyThread("坦克");
        MyThread mt1 = new MyThread("飞机");

        mt.setPriority(1);
        mt1.setPriority(10);
        mt.start();
        mt1.start();

    }
}


